export enum HttpCodeEnum {
  /** 操作成功 */
  SUCCESS = 100000000,
  /** 参数校验错误 */
  ERROR_PARAM_VALID = 100200000,
  /** 格式校验错误 */
  ERROR_PORMAT_VALID = 100201000,
  /** 必填项为空 */
  ERROR_REQUIRED_VALID = 100202000,
  /** 无token */
  ERROR_NO_TOKEN = 100300000,
  /** 非法访问、token校验失败 */
  ERROR_TOKEN_ERROR = 100300001,
  /** token过期 */
  ERROR_TOKEN_INVALID = 100300002,
  /** 账号在其他地方登录 */
  ERROR_OTHER_LOGIN = 100300003,
  /** 需要登录访问 */
  ERROR_NO_LOGIN = 100301000,
  /** 账号不存在 */
  ACCOUNT_NO_EXIST = 100400001,
  /** 系统错误 */
  ERROR_SYSTEM = 100500000,
  /** 响应超时 */
  ERROR_TIMEOUT = 100600000,
}

export enum ResultEnum {
  SUCCESS = 0,
  ERROR = -1,
  TIMEOUT = 401,
  TYPE = 'success',
}

/**
 * @description: request method
 */
export enum RequestEnum {
  GET = 'GET',
  POST = 'POST',
  PUT = 'PUT',
  DELETE = 'DELETE',
}

/**
 * @description:  contentType
 */
export enum ContentTypeEnum {
  // json
  JSON = 'application/json;charset=UTF-8',
  // form-data qs
  FORM_URLENCODED = 'application/x-www-form-urlencoded;charset=UTF-8',
  // form-data  upload
  FORM_DATA = 'multipart/form-data;charset=UTF-8',
}
